<template>
  <div class="login">
    <form action="" method="post">
      <div class="phone">
        <i></i>
        <input type="text" placeholder="请输入手机号" name="phone">
      </div>
      <div class="code">
        <i></i>
        <input type="text" placeholder="请输入验证码" name="code">
        <button>获取验证码</button>
      </div>
      <input class="submit" type="submit" value="登录">
      <div class="xieyi">
        <input type="checkbox" name="" id="">
        <p>
          同意
          <a href="javascript;">《服务条款》 </a>
          <a href="javascript;">《隐私政策》 </a>
          <a href="javascript;">《儿童隐私政策》</a>  
        </p>
      </div>
    </form>
  </div>
</template>

<script>
  export default {
    name: 'Login' 
  }
</script>

<style scoped>
  .login {
    width: 500px;
    background-image: linear-gradient(to bottom right, #d8fdfd, #b4d9ec);
    margin: 0 auto;
    padding: 20px;
  }

  form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  input {
    display: block;
    height: 40px;
    width: 300px;
    border: 1px solid #748994;
    border-radius: 3px;
    font-size: 16px;
    margin: 20px auto;
    padding: 5px 10px;
  }

  .code {
    display: flex;
    align-items: center;
  }

  .code input {
    width: 190px;
    margin: 0;
  }

  .code button {
    height: 40px;
    background-color: #89b3c8;
    border: 1px solid #87abbd;
    border-radius: 5px;
    color: #333;
    font-size: 16px;
    margin-left: 10px;
    padding: 5px 10px;
  }

  .code button:hover {
    background-color: #7ba2b6;
    cursor: pointer;
    color: #000;
  }

  .submit {
    background-color: #89b3c8;
    border: 1px solid #87abbd;
    color: #333;
    margin-bottom: 10px;
  }

  .submit:hover {
    background: #7ba2b6;
    color: #000;
  }

  .xieyi {
    display: flex;
    align-items: center;
    height: 50px;
    color: #777;
    font-size: 14px;
  }

  .xieyi input {
    width: 15px;
    margin-right: 5px;
  }

  .xieyi a {
    color: rgb(26, 26, 219);
  }

  .xieyi a:hover {
    text-decoration: underline;
  }
</style>